#if !defined(AFX_INPLACERADIO_H__26527A1C_5BAB_4779_A462_8A997CE88261__INCLUDED_)
#define AFX_INPLACERADIO_H__26527A1C_5BAB_4779_A462_8A997CE88261__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// InPlaceButton.h : header file
//

//#include "ComboGridCtrl.h"

#define IDC_OPENDLG	11151

/////////////////////////////////////////////////////////////////////////////
// CInPlaceButton window

class CInPlaceButton : public CButton
{
// Construction
public:
	CInPlaceButton(LPCTSTR lpszCaption,
				     DWORD dwStyle,
					 CRect& rect,
					 CWnd* pParentWnd,
					 UINT nID,
					 int nRow,
					 int nColumn);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInPlaceButton)
	protected:
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CInPlaceButton();
	
	void EndEdit();
protected:
	void OpenPic();

	// Generated message map functions
protected:
	//{{AFX_MSG(CInPlaceButton)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:
	int m_nRow;
	int m_nColumn;
	CString m_sCaption;
	CGridCtrl* m_pGrid;
	CFileDialog* m_pDlg;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_INPLACERADIO_H__26527A1C_5BAB_4779_A462_8A997CE88261__INCLUDED_)
